﻿using AbpVnext_Order_Contracts.Dto;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp;
using Volo.Abp.Application.Services;

namespace AbpVnext_Order_Contracts.Iservice
{
    public interface IOrderService : ICrudAppService<OrderDto, // 结果出参 
                                               OderPageResultDto,  //获取列表返回参数dto
                                               int, //主键
                                               OderPageDto, //查询入参
                                               OrderCreateDto, //创建入参dto
                                               OrderUpdateDto>  //更新入参dto
                                               , IRemoteService  //自动Api
    {
        /// <summary>
        /// 自定义方法
        /// </summary>
        /// <param name="orderCreateDto"></param>
        void ProdutctImage(OrderCreateDto orderCreateDto);

        void InsertProdutctImagess(OrderCreateDto orderCreateDto);

        //void InsertAsync(OrderCreateDto orderCreateDto);

        /// <summary>
        /// 创建
        /// </summary>
        /// <param name="orderCreateDto"></param>
        /// <returns></returns>
        //void InsertAsync(OrderCreateDto orderCreateDto);
        //自定义方法
        Task<OrderCreateResultDto> CreateOrderAsync(OrderCreateDto orderCreateDto);

        /// <summary>
        /// 修改  
        /// </summary>
        /// <param name="orderUpdateDto"></param>
        /// <returns></returns>
        Task<OrderUpdateResultDto> OrderUpdateAsync(OrderUpdateDto orderUpdateDto);
    }
}
